/**
 * Description:
 * Class Name:StatusTranfer
 * Date:2022/2/12 18:54
 *
 * @author LTisme
 * @version JAVA17
 */
package 疯狂Java讲义.第6章_面向对象_下._6_10_对象与垃圾回收._6_10_1_对象在内存中的状态;

public class StatusTranfer {
    public static void test(){
        var a = new String("bye");      // ①
        a = new String("hi");           // ②
    }

    public static void main(String[] args) {
        test();                                 // ③
    }
}
